package cn.com.klun.tjy.utils;

import java.net.InetAddress;
import java.net.UnknownHostException;

public class GetServerIp {


    /**
     * 获取本机的IP地址
     * @throws UnknownHostException
     */
    public static void getLocalHost() throws UnknownHostException {
        InetAddress address = InetAddress.getLocalHost();
        String hostAddress1 = address.getHostAddress();

    }
}
